package com.nxk.modules.core.web;

import com.nxk.modules.core.entity.SysLog;
import com.nxk.modules.core.service.SysLogService;
import com.nxk.modules.exception.ResultEntity;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/a/core/log")
public class SysLogController {

    @Autowired
    private SysLogService sysLogService;


    /**
     * 查询分页数据接口
     * @param sysLog
     * @return
     */
     @RequiresPermissions("core:log:view")
    @PostMapping("list")
    public ResultEntity list(SysLog sysLog) {
        return ResultEntity.success(sysLogService.page(sysLog));
    }

}
